<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInLeft">
    <div data-th-replace="common/functionDepict"></div>
    <div>
        <div class="row">
            <div class="creat-step-wrap clearfix">
            </div>
            <!--第一步 开始-->
            <div class="pt10">
                <div class="col-sm-8">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>填写基本信息</h5>
                        </div>
                        <div class="ibox-content clearfix pt10">
                            <div class="form-horizontal">
                                <form id="userIntegralFrom">
                                    <input type="hidden" name="id" />
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 要求学员行为</label>
                                        <div class="col-sm-8">
                                            <input class="form-control validate-data"  name="action" type="text">
                                            <span class="help-block m-b-none c-999"> 只支持中文和英文，限30个字以内</span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 获取积分类型</label>
                                        <div class="col-sm-8">
                                            <div class="radio i-checks">
                                                <label><input type="radio" checked="" value="1" name="actionType"> <i></i> 每天一次</label>
                                                <label><input type="radio" value="2" name="actionType"> <i></i> 不限次数</label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 积分类型</label>
                                        <div class="col-sm-8">
                                            <div class="radio i-checks">
                                                <label><input type="radio"  checked="checked" value="1" name="type"> <i></i> 固定积分</label>
                                                <label><input type="radio"  value="2"  name="type"> <i></i> 比例积分</label>
                                                <label><input type="radio"  value="3"  name="type"> <i></i> 赠送积分</label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group integralGive">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 分数</label>
                                        <div class="col-sm-8">
                                            <div id="userIntegralScore">
                                                <input class="form-control validate-data" onkeyup="this.value=this.value.replace(/\D/g,'')"  name="score" type="text">
                                                <span class="input-group-addon percentRemove" style="display: none">%</span>
                                            </div>
                                            <span class="help-block m-b-none c-999"> 分数为不为0的正整数</span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed userIntegralRuleTermDepict" style="display: none"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 描述</label>
                                        <div class="col-sm-8">
                                            <input class="form-control validate-data"  name="termDepict" type="text">
                                            <span class="help-block m-b-none c-999">   比例获取分数的情况下必须填写！</span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed "></div>
                                    <div class="form-group">
                                        <div class="col-sm-10 col-sm-offset-2">
                                            <button class="btn btn-primary ml10" id="submitUserIntegralRule" type="button">保存</button>
                                            <button class="btn btn-white ml10" type="button" id="onBack">取消</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
               <!-- <jsp:include page="/WEB-INF/view/common/importantNotes.jsp"/>-->
            </div>
            <!--第一步 结束-->
        </div>
    </div>
</div>
<div data-th-replace="layout/head-footer"></div>
<script type="text/javascript" th:src="@{{path}/admin/business/user/integral/integralrule.js?v={v}(path=${staticPath},v=${v})}"> </script>
</body>
</html>
